home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 10
/
The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso
/
PC_SIGCD
/
07
/
3
/
DISK0731.ZIP
/
TESTDRIV
< prev
next >
Wrap
Text File
|
1985-03-31
|
2KB
|
54 lines
TEST DRIVE
Follow the procedure below and you will have
gained the essence of LOCATE. "<cr>" means
"carriage return".
1) Boot your system with MS-DOS (or PC-DOS)
version 2.0 or later.
2) Remove your "A:" diskette and insert LOCATE.
3) Type "index<cr>". You are now indexing the
LOCATE release disk. There are approximately 20
files and 100,000 characters that will be
indexed. You can gauge how long INDEX will take
on your files from this "test drive". INDEX is
fast but you will need to assess the
cost/benefit relationship in determining how
often to update your indices.
4) Type "locate test drive<cr>". You see a list
of names of the files containing the words
"test" and "drive" in the same file.
5) Type "locate drive test<cr>". You see the
same list. Word order is irrelevant. What
counts is whether the file contains the keywords
in any location and in any order.
6) Type "locate a test drive<cr>". LOCATE
didn't find the words "a", "test", and "drive"
in any file. In fact LOCATE never finds
"common" words. "Common words" are, by
definition, those found in the file "WORDS.INX".
LOCATE requires that all the words in the list
be present in the file.
has the words "rock" and "roll" in it. The
other file names returned by LOCATE do not. We
call this artifact a "false hit". Used
normally, this should not be a problem. The
probability of "false hits" decreases with the
number of keywords used with LOCATE. We call
keyword lists sufficiently short to generate
false hits "under specified". It does not hurt
to "over specify" lists and can reduce the
annoyance of false hits when many files are
indexed.
8) Type "locate strategy". You will see the
file names containing "strategy". By keeping
the documentation on line you can use LOCATE as
an online help facility.